import React, { Component } from 'react';
import {withRouter} from 'react-router-dom'
class MyHeader extends Component {
    handleChange(){
        this.props.history.push('/search')
    }
    render() {
        return (
            <div className='cateheader'>
                <div className='title'>分类</div>
               <div className='input'>
               <input type="text" placeholder='搜索店铺内商品' onClick={()=>{this.handleChange()}} />
               </div>
            </div>
        );
    }
}

export default withRouter(MyHeader);